package cn.smbms.service;

import java.util.List;

import cn.smbms.pojo.Permission;
import cn.smbms.pojo.Role;
import cn.smbms.pojo.RolePermission;

public interface RoleService {
	public List<Role> getRoleList();

	public List<Role> getRoleListByRoleName(String roleName);
	
	public List<Permission> getPermissionList();

	public Role getRoleById(Integer roleid);

	public int updateRole(Role role);

	public int updateRolePermission(Integer id, Integer[] permession);

	public List<RolePermission> getRolePermissionByRoleId(Integer roleid);

	public List<Permission> getPermissionByRoleId(Integer userRole);
}
